/**注册第四步*/
function GetRequest() {
    var url = unescape(location.search);
    var theRequest = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.substr(1);
        strs = str.split("&");
        for (var i = 0; i < strs.length; i++) {
            theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
        }
    }
    return theRequest;
}

$(function(){
	var sweetcookie = new sweetCookie();
    var donkeyNum =  sweetcookie.getCookie("donkeyNum");
    var companyName =  sweetcookie.getCookie("companyName");
    var email =  sweetcookie.getCookie("email");

	if(donkeyNum==null){
		location.href="/web-adv/advWeb/views/login/E-mail.html";
	}
    
	$("#donkeyNum").text(donkeyNum);
	$("#email").text(email);
	$("#companyName").text(companyName);
	
	var newCookie = new sweetCookie();
	newCookie.delCookie("donkeyNum");
	newCookie.delCookie("email");
	newCookie.delCookie("name");
	newCookie.delCookie("advid");
	newCookie.delCookie("companyName");
	newCookie.delCookie("registerAdvId");
	
	
	function clearCookie(){
	    var keys=document.cookie.match(/[^ =;]+(?=\=)/g);
	    if (keys) {
	        for (var i =  keys.length; i--;)
	            document.cookie=keys[i]+'=0;expires=' + new Date( 0).toUTCString()
	    }   
	}
})